<template>
  <div class="test">
    <div class="dd">
        {{msg}}
    </div>
    <div id="box" class="dd2">
        {{ddd}}
    </div>
    <div class="dd2">
        123
    </div>
        <input type="button" value="点击显示隐藏" @click="show=!show"/>
  </div>
</template>

<script>
import '../assets/css/index.less'
import { mapMutations, mapGetters, mapActions } from 'vuex'
export default {
  name: 'test',
  data () {
    return {
      msg: 'test',
      ddd: '123'
    }
  },
  created() {
      console.log(this.TEST1);
      this.TEST1({id:"7777777"});
    
  },
  methods: {
        ...mapActions({                    //映射Mutations
            TEST1: 'TEST1'         //底部导航action切换
        }),
        // ...mapMutations({                 //引入 修改状态的方法  就可以用 this.setSinger()     //来进行修改状态(状态改变会自动渲染你所关联的组件)         
        //     setdonghua2: 'SET_DONGHUA2',

        // }),
    }
}
</script>